package edu.iyte.ceng316;

public class Main {

    public static void main(String[] args) {
        Calculator calculator = new Calculator();

        calculator.switchOn();
        System.out.println("...Switch On...");

        calculator.add(500);
        System.out.println("Plus 500        = " + calculator.getResult());

        calculator.add(200);
        System.out.println("Plus 200        = " + calculator.getResult());

        calculator.subtract(100);
        System.out.println("Minus 100       = " + calculator.getResult());

        calculator.divide(2);
        System.out.println("Divided by 2    = " + calculator.getResult());

        calculator.multiply(10);
        System.out.println("Muliplied by 10 = " + calculator.getResult());

        System.out.println("...Clear...");
        calculator.clear();

        calculator.add(500);
        System.out.println("Plus 500        = " + calculator.getResult());

        calculator.switchOff();
        System.out.println("...Switch Off...");
    }
}
